package com.zhipu.balance.mobile.event.upgrade;

import com.raizlabs.android.dbflow.annotation.Migration;
import com.raizlabs.android.dbflow.sql.SQLiteType;
import com.raizlabs.android.dbflow.sql.migration.AlterTableMigration;
import com.zhipu.balance.mobile.DBManager;
import com.zhipu.balance.mobile.event.RecordRapeseed;
import com.zhipu.balance.mobile.event.RecordRapeseed_Table;

@Migration(version = 5, database = DBManager.class)
public class RecordRapeseed1 extends AlterTableMigration<RecordRapeseed> {


    public RecordRapeseed1(Class<RecordRapeseed> table) {
        super(table);
    }


    @Override
    public void onPreMigrate() {
        super.onPreMigrate();
        addColumn(SQLiteType.TEXT, RecordRapeseed_Table.deviceId.getNameAlias().name());
    }
}